import request from '@/utils/request'

export function renwuList(data) {
  return request({
    url: '/renwu/index',
    method: 'post',
    data
  })
}

export function renwuSave(data) {
  return request({
    url: '/renwu/save',
    method: 'post',
    data
  })
}

export function rizhi() {
  return request({
    url: '/renwu/rizhi',
    method: 'get'
  })
}

export function allRizhi(data) {
  return request({
    url: '/renwu/all_rizhi',
    method: 'post',
    data
  })
}

// 删除
export function destroy(id) {
  return request({
    url: `/renwu/${id}`,
    method: 'delete'
  })
}
